import React from 'react';
import ConvertibleBond from '../components/Fortune/ConvertibleBond';
import Environment from '../pages/ToolKit/dbEnv';
import FortuneHome from '../pages/Fortune';
import { RouteConfig } from '../types/router.types';

const Fortune: RouteConfig[] = [
  {
    path: "/fortune", 
    element: React.createElement(FortuneHome),
    children: [
      // 这个组件在渲染的时候不会覆盖掉/Toolkit的内容
      // { path: "Environment", element: React.createElement(Environment) },
      
    ],
  },
  // 这个组件在渲染的时候会覆盖掉/Toolkit的内容
  { path: "/fortune/environment", element: React.createElement(Environment) },
  {
    path: "/fortune/convertible-bond",
    element: React.createElement(ConvertibleBond),
  }
];

export default Fortune;